package com.ruoyi.boat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 消息数据对象 t_msg
 *
 * @author ruoyi
 * @date 2023-08-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Msg extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 波浪艇编号
     */
    @Excel(name = "艇编号")
    private String boatCode;

    /**
     * 消息内容
     */
    @Excel(name = "消息类型")
    private String msgType;

    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    private String data;

    /**
     * 接收/发送
     */
    @Excel(name = "接收/发送")
    private Integer isSent;

    /**
     * 消息时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "消息时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

}
